package com.wxx.design.staticproxy;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/5/2 20:30
 */
public class OrderServiceImpl implements OrderService {
    private final OrderDao dao = new OrderDaoImpl();

    @Override
    public int saveOrder(Order order) {
        int row = dao.insert(order);
        System.out.println("Service层调用Dao层添加Order成功...");
        return row;
    }
}
